package com.ruoyi.system.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户通知记录对象 SYS_USER_NOTICE
 *
 * @author dp
 * @date 2023-12-05
 */
@Data
public class SysUserNotice extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 用户通知记录主键
     */
    private Long noticeUserId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 通知ID
     */
    private Long noticeId;

    /**
     * 公告状态 0未读 1已读 2删除
     */
    private Long noticeStatus;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("noticeUserId", getNoticeUserId())
                .append("userId", getUserId())
                .append("noticeId", getNoticeId())
                .append("noticeStatus", getNoticeStatus())
                .toString();
    }
}
